﻿
namespace Marmat.Forms.Views
{
    namespace Grid
    {
        public class FocusedColumnChangedEventArgs : GridEventArgs
        {
            internal DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs info;

            internal FocusedColumnChangedEventArgs(BaseGrid gridControl, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs info) : base(gridControl)
            {
                this.info = info;
            }

            /// <summary>
            /// 获取当前焦点列。
            /// </summary>
            /// <returns></returns>
            public Column FocusedColumn
            {
                get
                {
                    return (Column)this.info.FocusedColumn.Tag;
                }
            }

            /// <summary>
            /// 获取先前聚焦的列。
            /// </summary>
            /// <returns></returns>
            public Column PrevFocusedColumn
            {
                get
                {
                    return (Column)this.info.PrevFocusedColumn.Tag;
                }
            }
        }
    }
}